/**
 * File: ContigDataWriter.java
 * Created by: mhaimel
 * Created on: 18 Aug 2009
 * CVS:  $Id: ContigDataWriter.java,v 1.1 2009/08/27 14:52:44 mhaimel Exp $
 */
package uk.ac.ebi.curtain.util.io;

import java.io.PrintWriter;

import uk.ac.ebi.velvet.model.ContigData;

/**
 * @author mhaimel
 *
 */
public class ContigDataWriter extends AbstractWriter<ContigData> {

	public ContigDataWriter(PrintWriter out) {
		super(out);
	}
	/* ID | length | filePos */
	@Override
	protected void _doWrite(ContigData bean) {
		writeColumn(wrap(bean.getIdentifier()));
		writeColumn(wrap(bean.getLength()));
		_write(wrap(bean.getFilePosition()));
		getWriter().println();
	}
}
